package com.xusheng.cli.mapper;

import com.xusheng.cli.common.base.MyBaseMapper;
import com.xusheng.cli.entity.dictionaryModule.Category;
import com.xusheng.cli.entity.favoritesModule.Favorites;
import com.xusheng.cli.entity.videoModule.Video;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 收藏夹(Favorites)表数据库访问层
 *
 * @author makejava
 * @since 2023-04-27 17:22:37
 */
public interface FavoritesMapper extends MyBaseMapper<Favorites> {
    List<Category> categoryByCollect(Long userId);

    List<Video> listByCategory(@Param("id") Long id, @Param("userId") Long userId);
}

